package io.zerous.gravitation

import android.app.Activity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import io.zerous.engine.Game
import io.zerous.engine.Screen

class MainActivity : Game() {
    override fun getScreen(): Screen {
        return MainScreen()
    }

    override fun onCreateOptionsMenu(menu: Menu?): Boolean {
        menuInflater.inflate(R.menu.main_menu, menu)
        return true
    }

    fun onDebugItem(item: MenuItem) {
        DEBUG = !DEBUG
    }

    fun onTrack0(item: MenuItem) {
        TRACK = 0
    }

    fun onTrack1(item: MenuItem) {
        TRACK = 1
    }

    fun onTrack2(item: MenuItem) {
        TRACK = 2
    }

    fun onTrack3(item: MenuItem) {
        TRACK = 3
    }

    fun onTrack4(item: MenuItem) {
        TRACK = 4
    }
}
